<?php include "../public/header.php";?>
<?php include "../public/header_show.php";?>
<body id="xiangqingPage">
<div id="xiangqingBox">
    <div class="page-title">
        <div class="page-title-con">
            <span class="pageshowtitle">详情</span>
            <div class="page-title-opt-list">
                <?php include "../public_flow/flow_show_optbut.php";?>
                <button class="layui-btn layui-btn-sm btn-light marginr5 opt">
                    操作<i class="layui-icon layui-icon-down layui-font-12"></i>
                </button>
                <span id="page-close" class="page-close" onclick="layer_close()">×</span>
            </div>
        </div>
    </div>
    <div class="main-container">
        <div><?php include "../public_flow/flow_show_info.php";?></div>
        <div class="table-box tablenes">
            <div class="title">档案信息</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">档案编号</td><td id="number" class="tv"></td><td class="tt">档案分类</td><td id="dangfen_name" class="tv"></td></tr>
                <tr><td class="tt">工程名称</td><td id="enginname" class="tv colorlan" colspan="3"></td></tr>
                <tr><td class="tt">档案名称</td><td id="name" class="tv"></td><td class="tt">档案日期</td><td id="dangdt" class="tv"></td></tr>
                <tr><td class="tt">相关方</td><td id="xianger" class="tv"></td><td class="tt">涉及金额</td><td id="shefee" class="tv"></td></tr>
                <tr><td class="tt">档案类型</td><td id="danglei" class="tv"></td><td class="tt">页码数</td><td id="yeshu" class="tv"></td></tr>
                <tr><td class="tt">入库份数</td><td id="runum" class="tv"></td><td class="tt">归档份数</td><td id="guinum" class="tv"></td></tr>
                <tr><td class="tt">归档日期</td><td id="guidt" class="tv"></td><td class="tt">归档人</td><td id="guier_name" class="tv"></td></tr>
                <tr><td class="tt">备注</td><td class="tv" id="explain" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>

        <div class="table-box tablenes">
            <div class="title">移交信息</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">移交人</td><td id="yier_name" class="tv"></td><td class="tt">移交日期</td><td id="yidt" class="tv"></td></tr>
                <tr><td class="tt">移交份数</td><td id="yinum" class="tv"></td><td class="tt">通知人</td><td id="jieer_name" class="tv"></td></tr>
                <tr><td class="tt">移交说明</td><td class="tv" id="jieshuo" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>

        <div><?php include "../public/upinfo_show.php";?></div>

        <div><?php include "../public_flow/flow_show_flowrelas.php";?></div>

        <div><?php include '../public_flow/flow_show_shenlog.php'?></div>
        <div><?php include '../public_flow/flow_show_talk.php'?></div>
        <div><?php include '../public/opt_browse.php'?></div>
    </div>
</div>
<script>
    var param_dangtype = getQueryVariable('dangtype') || 0;
    var param_id = getQueryVariable('id') || 0;

    layui.use(['form', 'layer', "laytp",'element','dropdown','laypage','table','soulTable'], function() {
        var laypage = layui.laypage, table = layui.table, dropdown = layui.dropdown, form = layui.form, soulTable = layui.soulTable,element = layui.element;

        facade.ajax({url: ask_coss_jiao_show, data:{id: param_id,dangtype:param_dangtype}}).done(function(res){
            if (res.code === 2000) {
                var data = res.data.data;
                var engininfo = res.data.engininfo;

                if(engininfo){
                    $("#enginname").text(engininfo.name).click(function () {
                        openPage('../engin/show.php?id='+engininfo.id);
                    });
                }



                $("#number").text(data.number);
                $("#dangfen_name").text(data.dangfen_name);
                $("#guier_name").text(data.guier_name);
                $("#name").text(data.name);
                $("#dangdt").text(data.dangdt);
                $("#xianger").text(data.xianger);
                $("#shefee").text(data.shefee);
                $("#danglei").text(data.danglei);
                $("#yeshu").text(data.yeshu);
                $("#runum").text(data.runum);
                $("#guinum").text(data.guinum);
                $("#guidt").text(data.guidt);
                $("#explain").text(data.explain);


                $("#yier_name").text(data.yier_name);
                $("#yidt").text(data.yidt);
                $("#yinum").text(data.yinum);
                $("#jieer_name").text(data.jieer_name);
                $("#jieshuo").text(data.jieshuo);

                public_upload_show_file('upload_files', res.data.files);

                render_from();
            }
        });


        if(param_dangtype == 1){
            public_get_readsandlog('doss_jiao', param_id);
        }else if(param_dangtype == 2){
            public_get_readsandlog('coss_jiao', param_id);
        }else if(param_dangtype == 3){
            public_get_readsandlog('xoss_jiao', param_id);
        }

        showpage_dropopt();
    });



</script>
</body>
</html>




